util: Add an API to atomic-replace a file, dirfd relative, optional fsync
authorColin Walters <walters@verbum.org>
Wed, 4 Feb 2015 19:45:09 +0000 (14:45 -0500)
committerColin Walters <walters@verbum.org>
Thu, 5 Feb 2015 21:59:52 +0000 (16:59 -0500)
commit65afe1110d657e09ac46affa01ccaac6f2dbbf97
tree2d2ee33eef8c5f080df9fcd83551b106009744e7
parent3b8ed12ab24d3aa4b97ea09f5689d533fe65e3ba
util: Add an API to atomic-replace a file, dirfd relative, optional fsync

This can be used in other places too, but I plan to use it to write
the summary file.
src/libotutil/ot-gio-utils.c
src/libotutil/ot-gio-utils.h